import math

for i  in range(10):
    input_number=input("Enter a number:")
    try:
        if input_number == "q":
            break
        else:
            result=1/math.log(float(input_number))
            print(result)
    except Exception as e:
        print(f'Error: {e}')
        break


